home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / bn.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  68 lines

  1. <search function="bn">
  2.   <name>Borland Newsgroups</name>
  3.   <description>
  4.     Search the Borland Newsgroup Database. Results are sorted by rank and article.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/thread</td><td> - </td><td>Sort results by thread instead of by article.</td></tr>
  8.           <tr><td>/date</td><td> - </td><td>Sort results by date instead of by rank.</td></tr>
  9.        </table>
  10.     <div class="helpboxDescLabels">Examples:</div>
  11.     <table class="helpboxDescTable">
  12.           <tr><td>bn delphi 7</td></tr>
  13.       <tr><td>bn jbuilder linux kde /date /thread</td></tr>
  14.       </table>
  15.   </description>
  16.   <category>Computers</category>
  17.   <link>http://www.tamaracka.com/search.htm</link>
  18.   <contributor>Tom Corcoran, Ryan Edwards</contributor>
  19.   
  20.   <form name="bnf"
  21.         action="http://216.101.185.148/scripts/isapi.dll/execute"
  22.         method="post">
  23.     <input type="hidden" name="SearchFor" value=""/>
  24.     <input type="hidden" name="Display" value=""/>
  25.     <input type="hidden" name="Sort" value=""/>
  26.   </form>
  27.   
  28.   <script><![CDATA[
  29.     function bn(q)
  30.     {
  31.       var args = parseArgs(q, "thread, date");
  32.       document.bnf.Sort.value = "Rank";
  33.       document.bnf.Display.value = "Article";
  34.         
  35.       if( nullArgs("bn", q) )
  36.         return false;
  37.       else if( args.switches.length > 0 )
  38.       {
  39.         for (var j = 0; j < args.switches.length; j++)
  40.               switch( args.switches[j].name )
  41.           {
  42.             case "thread":
  43.               document.bnf.Display.value = "Thread";
  44.               break;
  45.               
  46.             case "date":
  47.               document.bnf.Sort.value = "Date";
  48.               break;
  49.           }
  50.           
  51.         document.bnf.SearchFor.value = args.q;
  52.         submitForm(bnf);
  53.           }
  54.       else
  55.       {
  56.         document.bnf.SearchFor.value = args.q;
  57.         submitForm(bnf);
  58.       }
  59.     }
  60.   ]]></script>
  61.  
  62.   <copyright>
  63.     Copyright (c) 2002 David Bau
  64.     Distributed under the terms of the
  65.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  66.   </copyright>
  67. </search>
  68.